FROM mutual/centos-jdk8:7
ENV workdir /app/
ENV jar mutual-reinscore-1.0.0.jar
ENV agentjar TencentCloudJvmMonitor-1.1.0-RELEASE.jar

COPY ${jar} ${workdir}
WORKDIR ${workdir}
CMD ["sh", "-ec", "sh /root/tsf-consul-template-docker/script/start.sh; exec java -Xloggc:/data/tsf_apm/monitor/jvm-metrics/gclog.log -XX:+PrintGCDateStamps -XX:+PrintGCDetails -verbose:gc -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=8 -XX:GCLogFileSize=50M -javaagent:${workdir}/${agentjar}=hascontroller=true ${JAVA_OPTS} -jar ${jar}"]
